'''
Created on 2014-11-5

@author: zhaoxiang
'''
class db:
    def __init__(self,host,port,user,passwd,db):
        self.host=host
        self.port=int(port)
        self.user=user
        self.passwd=passwd
        self.db=db
        
# DB resources
db_26_data_app=db('10.5.20.26',5029,'huangliang','DcUsZkvcj8H8efPbpy','data_app')
db_26_showclick=db('10.5.20.26',5029,'huangliang','DcUsZkvcj8H8efPbpy','dbwww58com_showclick')
db_26_jingzhun=db('10.5.20.26',5029,'huangliang','DcUsZkvcj8H8efPbpy','dbwww58com_jingzhun')
db_26_info=db('10.5.20.26',5029,'huangliang','DcUsZkvcj8H8efPbpy','dbwww58com_info')
db_26_zhaopin=db('10.5.20.26',5029,'huangliang','DcUsZkvcj8H8efPbpy','dbwww58com_zhaopin')
db_26_bi=db('10.5.20.26',5029,'huangliang','DcUsZkvcj8H8efPbpy','data_bi')

db_27_zhineng=db('10.5.20.27',5029,'huangliang','S236XnYhG0VFb2mN15','dbwww58com_zhineng')
db_27_jingzhun=db('10.5.20.27',5029,'huangliang','S236XnYhG0VFb2mN15','dbwww58com_jingzhun')
db_27_middle=db('10.5.20.27',5029,'huangliang','S236XnYhG0VFb2mN15','data_middle')
db_27_detail=db('10.5.20.27',5029,'huangliang','S236XnYhG0VFb2mN15','data_detail')
db_27_detail_info=db('10.5.20.27',5029,'huangliang','S236XnYhG0VFb2mN15','data_detail_info')

db_58_stats=db('10.5.20.16',58885,'root','group_buytj1140','dbwww58com_58_stats')
db_pre_ads=db('10.5.20.16',58885,'root','group_buytj1140','dbwww58com_precision_ads')

db_zhaopin=db('10.5.20.15',5029,'root','group_buytj1140','zhaopin')
db_ors=db('10.5.20.15',5029,'root','group_buytj1140','online_revenue')
db_58=db('10.5.20.15',5029,'root','group_buytj1140','58')
